<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--form用于获取用户输入的各种信息,并且把信息提交给服务器-->

<form action="">
  用户名:<input type="text" name="username" placeholder="请输入用户名"
maxlength="5" value="abcde" readonly>
  <br>
密  码:<input type="password" name="password" placeholder="请输入密码">
  <br>
  <!--性别--单选框里面必须添加value 设置提交的值,否则提交on-->
  性别:<input type="radio" name="gender" value="m" id="r1">
  <lable for="r1">男</lable>
  <input type="radio" name="gender" value="w" id="r2">
  <lable for="r2">女</lable>
  <br>
  <!--checked  设置默认选中-->
  兴趣爱好:
  <input type="checkbox" name="hoppy" checked value="cy">抽烟
  <input type="checkbox" name="hoppy" value="hj">喝酒
  <input type="checkbox" name="hoppy" value="dp">打牌

  <br>
  <select name="city" >
    <!--value是用来设置提交内容的,不写就提交标签体内的内容-->
    <option value="bj">北京</option>
    <option value="sh" >上海</option>
    <option value="my" selected>绵阳</option>
  </select>
  <input type="reset" value="重置按钮">
  <input type="submit" value="提交注册">
  <input type="button" value="自定义按钮">
</form>
</body>
</html>